home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 January / PC Plus Super CD No55a (PCP-147A-1-99) (Disc 1) (1998).iso / full / cbuilder / SAMS / SAMPLES / CHAP06 / MULTIPLE.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-12  |  769 b   |  20 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. //---------------------------------------------------------------------------
  5. USEFORM("Main.cpp", MainForm);
  6. USEFORM("Second.cpp", SecondForm);
  7. USEFORM("About.cpp", AboutBox);
  8. //---------------------------------------------------------------------
  9. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  10. {
  11.     Application->Initialize();
  12.     Application->CreateForm(__classid(TMainForm), &MainForm);
  13.     Application->CreateForm(__classid(TSecondForm), &SecondForm);
  14.     Application->CreateForm(__classid(TAboutBox), &AboutBox);
  15.     Application->Run();
  16.  
  17.     return 0;
  18. }
  19. //---------------------------------------------------------------------------
  20.